﻿@model FantasyBlog.DAL.Post
@{
    Layout = "~/Views/Shared/_CPLayout.cshtml";
}
<div class="wrap">
    <div id="post-body">
        <div id="post-body-content">
            <h2>撰写新文章</h2>
            @using (Html.BeginForm())
            {
                <div id="titlediv">
                    <div id="titlewrap">
                        <div id="media-buttons" class="hide-if-no-js">标题</div>
                        @Html.TextBoxFor(modelitem => Model.title)
                    </div>
                </div>
                <div id="postdivrich" class="postarea">
                    <div id="editor-toolbar">
                        <div class="zerosize">
                            <input accesskey="e" type="button" onclick="switchEditors.go('content')" /></div>
                        <div id="media-buttons" class="hide-if-no-js">正文</div>
                    </div>
                        @Html.TextAreaFor(modelitem => Model.content, rows: 20, columns: 40, htmlAttributes:null)
                </div>
                <div id="postdivrich" class="postarea">
                    <div id="editor-toolbar">
                        <div class="zerosize">
                            <input accesskey="e" type="button" onclick="switchEditors.go('content')" /></div>
                        <div id="media-buttons" class="hide-if-no-js">摘要</div>
                    </div>
                        @Html.TextAreaFor(modelitem => Model.excerpt, rows: 4, columns: 40, htmlAttributes: null)
                </div>
                <!--
                <div id="titlediv">
                    <div id="titlewrap">
                        <div id="media-buttons" class="hide-if-no-js">分类</div>
                    </div>
                </div>
                -->
                <!--
                <div id="titlediv">
                    <div id="titlewrap">
                        <div id="media-buttons" class="hide-if-no-js">标签</div>
                        @Html.TextBoxFor(modelitem => Model.title)
                    </div>
                </div>
                -->
                <p>
                    <input type="submit" value="发布文章" />
                </p>
            }
        </div>
    </div>
    <br class="clear" />
    <!-- /poststuff -->
</div>